import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/agent_user/login',
    method: 'get',
    params:data
  })
}

export function getInfo(token) {
  return request({
    url: '/agent_user/info',
    method: 'get',
    params: {
      'x-token':token
    }
  })
}

export function logout() {
  return request({
    url: '/agent_user/logout',
    method: 'post'
  })
}
